<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>字体图标</title>
    <style>
      /* 字体声明 */
      @font-face {
        font-family: "icomoon";
        src: url("../fonts/icomoon.eot?afruye");
        src: url("../fonts/icomoon.eot?afruye#iefix")
            format("embedded-opentype"),
          url("../fonts/icomoon.ttf?afruye") format("truetype"),
          url("../fonts/icomoon.woff?afruye") format("woff"),
          url("../fonts/icomoon.svg?afruye#icomoon") format("svg");
        font-weight: normal;
        font-style: normal;
        font-display: block;
      }

      span {
        font-family: "icomoon";
        font-size: 30px;
        margin: 20px;
      }
    </style>
  </head>
  <body>
    <span></span>
    <span></span>
    <span></span>
  </body>
</html>
